package ooday02;

public class InterfaceDemo {
    public static void main(String[] args) {

    }
}
interface Inter{//不能实例化
    abstract void show();
    void test();//默认前面public abstract
}
class InterImpl implements Inter{
    public void show(){

    }
    public void test(){

    }
}

interface  Inter1{
    abstract void show();
}
interface  Inter2{
    void test();
}
abstract class Eoo{
    abstract void say();
}
class Foo extends Eoo implements Inter1,Inter2{//先继承后实现
    public void show(){

    }
    public void test(){

    }
    void say(){

    }

}
interface Inter3{
    void show();
}
interface Inter4 extends Inter3{//接口继承
    void test();
}
class Goo implements Inter4{
    public void show(){

    }
    public void test(){

    }
}


